import request from '../../util/request.js';

// export function uploads(data) {
//     return request({
//         method: 'post',
//         url: '/uploads',
//         params: data,
//         headers: {
//             'Content-Type': 'multipart/form-data' // 设置请求头，表明是一个 FormData 格式的数据
//         }
//     });
// }


// export function getImage(data) {
//     return request({
//         method: 'post',
//         url: '/getImage?filename=' + data,
//     });
// }


export function Filedelete(data) {
    return request({
        method: 'delete',
        url: '/Filedelete?filename=' + data,
    });
}


export function Filedownload(file,name) {
    return request({
        method: 'get',
        url: '/view?relativePath='+file+'&Filename='+name,
    });
}